<?
if($_POST['key_search']){
$key=urldecode($_POST['key_search']);
$multi_type=urldecode($_POST['multitype']);
if($multi_type=='album')
$type=1;
elseif($multi_type=='movie')
$type=2;
$q=$DB->query("SELECT multi_id,multi_name,multi_viewed FROM ".$conf['prefix']."multimedia WHERE multi_name_ascii LIKE '%{$key}%' AND multi_type='{$type}'");
		$count_m = $DB->num_rows($q);
		if($count_m){
		echo "<table width=450px border=1px>";
			while($chk=$DB->fetch_row($q))				
				echo "<tr><td width=80%><a href=\"?act=multimedia&mode=edit&multi_id={$chk['multi_id']}\"><font color='blue'><b>".$func->unhtmlchars($chk['multi_name'])."</b></font></a></td><td>Viewed : {$chk['multi_viewed']}</td></tr>";
		echo "</table>";
		}
		else
		echo "<font color='blue'>Not Found</font>";
}
?>
